<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>新增表单控件属性</title>
</head>
<body>
  <form action="#">
    <label>
      <span>账号</span>
      <!-- placeholder -->
      <!-- required -->
      <!-- autofocus -->
      <!-- autocomplete -->
      <!-- pattern 正则匹配 -->
      <input 
        type="text" 
        name="account" 
        placeholder="请输入账号" 
        required 
        autofocus 
        autocomplete="\w{6}"
      >
    </label>
    <br>
    <label>
      <span>密码</span>
      <input type="text" name="password" required>
    </label>
    <br>
    <label>
      <span>性别</span>
      <input type="radio" value="male" name="gender" required><span>男</span>
      <input type="radio" value="female" name="gender"><span>女</span>
    </label>
    <br>
    <label>
      <span>爱好</span>
      <input type="checkbox" value="smoke" name="hobby" required><span>抽烟</span>
      <input type="checkbox" value="drink" name="hobby"><span>喝酒</span>
      <input type="checkbox" value="perm" name="perm"><span>烫头</span>
    </label>
    <br>
    <label>
      <span>其他</span>
      <textarea name="other" cols="30" rows="3" required></textarea>
    </label>
    <br>
    <button>提交</button>
  </form>
</body>
</html>